package com.panshi.vo.qa;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/*
 *评论
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "评论对象")
public class Comment implements Serializable {
    //id
    @ApiModelProperty(value = "id")
    private int cId;
    //用户id
    @ApiModelProperty(value = "用户id")
    private int cUserId;
    //评论内容
    @ApiModelProperty(value = "评论内容")
    private String cContent;
    //评论时间
    @ApiModelProperty(value = "评论时间")
    private String cDate;
    //节点id
    @ApiModelProperty(value = "节点id")
    private int cTextId;
    //上级评论id
    @ApiModelProperty(value = "文章或回答或评论id(父级id)")
    private int cParentId;
    //点赞总数
    @ApiModelProperty(value = "点赞总数")
    private int cPraiseSum;
    //类型
    @ApiModelProperty(value = "类型")
    private int cType;
    //状态
    @ApiModelProperty(value = "状态")
    private int cState;

    //所属用户信息
    @ApiModelProperty(value = "所属用户信息")
    private User user;

    @ApiModelProperty(value = "所回复的用户信息")
    private User userP;

    //回复总数
    @ApiModelProperty(value = "回复总数")
    private int revertSum;
}
